﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FortuneHeavenCommon.DataMap;
using System.Data.SqlClient;

namespace FortuneHeavan.Game.DAL
{
    public class LotteryCodeDAL : TreasureDBBase
    {
        public LotteryCode GetLotteryCode(string Code)
        {
            string sql = "select * from LotteryCode where Code =@Code";
            List<LotteryCode> list = Query<LotteryCode>(sql, new SqlParameter("@Code", Code));
            if (list != null&&list.Count>0)
            {
                return list[0];
            }
            return null;
        }
    }
}
